package com.ashley.day_03;

public class AriTest {

	public static void main(String[] args) {
		int s1 = 12;
		int i1 = 5;
		int result1 = s1 / i1;
		double result2 = s1 / i1;
		double result3 = s1 / (i1 + 0.0);
		double result4 = (double) s1 / i1;
		double result5 = (double) (s1 / i1);
		System.out.println(result1);//2
		System.out.println(result2);//2.0
		System.out.println(result3);//2.4
		System.out.println(result4);//2.4
		System.out.println(result5);//2.0

		// *******************************
		int m1 = 14;
		int n1 = 8;
		System.out.println("m1 % n1 = " + m1 % n1);//m1 % n1 = 6

		int m2 = -14;
		int n2 = 8;
		System.out.println("m2 % n2 = " + m2 % n2);//m2 % n2 = -6

		int m3 = 14;
		int n3 = -8;
		System.out.println("m3 % n3 = " + m3 % n3);//m3 % n3 = 6

		int m4 = -14;
		int n4 = -8;
		System.out.println("m4 % n4 = " + m4 % n4);//m4 % n4 = -6

		// *********************************
		int b1 = 6;
		int b2 = 7; 
		int d1 = ++b1;
		int d2 = b2++;
		System.out.println("b1=" + b1 + ",d1=" + d1);//b1=7,d1=7
		System.out.println("b2=" + b2 + ",d2=" + d2);//b2=8,d2=7

	}

}